import {ElMessage, ElMessageBox, ElNotification} from "element-plus";
import * as eleIcons from '@element-plus/icons-vue';
import _ from 'lodash';

export function setupGlobalMethods(app, i18n) {
    app.config.globalProperties.$message = ElMessage;
    app.config.globalProperties.$modal = ElMessageBox;
    app.config.globalProperties.$notify = ElNotification
    app.config.globalProperties.Reflect = Reflect;
    app.config.globalProperties.$icons = eleIcons;
    app.config.globalProperties._ = _;
    app.config.globalProperties.$t = (key, options) => i18n.t(key, options);
}